﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZL.WeChatCard.Entity;
using ZL.WeChatCard.Utility;
using ZL.WeChatCard.Utility.Http;
using static System.Configuration.ConfigurationSettings;

namespace ZL.WeChatCard.Service.Base
{
    public class ServiceBase
    {
        protected static readonly string server;
        static ServiceBase()
        {
            server = AppSettings["ServerAddress"].ToString();
        }
            
        protected static readonly IdentityEntity Identity = new IdentityEntity
        {
            ClientName = "WeChatCard",
            ClientVersion = "20141117",
            RandomCode = "001"
        };

        protected readonly IHttpClient httpClient = new HttpNoCompressionClient(); //没有压缩
    }
}
